<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::log::Component_payload_type_dict&lt; Dict_by_ptr_t, Dict_by_val_t &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1log.html">log</a></li><li class="navelem"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">Component_payload_type_dict</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classflow_1_1log_1_1Component__payload__type__dict-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::log::Component_payload_type_dict&lt; Dict_by_ptr_t, Dict_by_val_t &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>An internal-use dictionary for fast lookup of small <code>Cfg</code> values keyed by <code>type_info</code> objects; impl = 1 <code>Component_payload_type_dict_by_val_...</code> and 1 <code>Component_payload_type_dict_by_ptr_...</code>.  
 <a href="classflow_1_1log_1_1Component__payload__type__dict.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for flow::log::Component_payload_type_dict&lt; Dict_by_ptr_t, Dict_by_val_t &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Component__payload__type__dict__coll__graph.svg" width="255" height="143"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3f00b5b871aa66b4b21099790cdb775b"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#a3f00b5b871aa66b4b21099790cdb775b">Dict_by_ptr</a> = Dict_by_ptr_t</td></tr>
<tr class="memdesc:a3f00b5b871aa66b4b21099790cdb775b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience alias for template arg.  <a href="classflow_1_1log_1_1Component__payload__type__dict.html#a3f00b5b871aa66b4b21099790cdb775b">More...</a><br /></td></tr>
<tr class="separator:a3f00b5b871aa66b4b21099790cdb775b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba98daa30395fd21e4eec7d61e7f7563"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#aba98daa30395fd21e4eec7d61e7f7563">Dict_by_val</a> = Dict_by_val_t</td></tr>
<tr class="memdesc:aba98daa30395fd21e4eec7d61e7f7563"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience alias for template arg.  <a href="classflow_1_1log_1_1Component__payload__type__dict.html#aba98daa30395fd21e4eec7d61e7f7563">More...</a><br /></td></tr>
<tr class="separator:aba98daa30395fd21e4eec7d61e7f7563"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7be2f86e23332ddd692f9fb367b3f80"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#ad7be2f86e23332ddd692f9fb367b3f80">Cfg</a> = typename Dict_by_ptr::Cfg</td></tr>
<tr class="memdesc:ad7be2f86e23332ddd692f9fb367b3f80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience alias for the mapped-type looked-up by a <code>*this</code>.  <a href="classflow_1_1log_1_1Component__payload__type__dict.html#ad7be2f86e23332ddd692f9fb367b3f80">More...</a><br /></td></tr>
<tr class="separator:ad7be2f86e23332ddd692f9fb367b3f80"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af0693c5f5fdd2583d03eb285ff8f4ee0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#af0693c5f5fdd2583d03eb285ff8f4ee0">insert</a> (const std::type_info &amp;type, <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#ad7be2f86e23332ddd692f9fb367b3f80">Cfg</a> cfg, <a class="el" href="classbool.html">bool</a> type_info_ptr_is_uniq)</td></tr>
<tr class="memdesc:af0693c5f5fdd2583d03eb285ff8f4ee0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a mapping from the given type to a <code>Cfg</code> value, so it can be obtained by <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#afcb470076f57f851f8fff1d0322e5f66" title="Looks up a value previously added via insert(), or indicates no such value has yet been added.">lookup()</a>.  <a href="classflow_1_1log_1_1Component__payload__type__dict.html#af0693c5f5fdd2583d03eb285ff8f4ee0">More...</a><br /></td></tr>
<tr class="separator:af0693c5f5fdd2583d03eb285ff8f4ee0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcb470076f57f851f8fff1d0322e5f66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#afcb470076f57f851f8fff1d0322e5f66">lookup</a> (const std::type_info &amp;type, <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#ad7be2f86e23332ddd692f9fb367b3f80">Cfg</a> *cfg) const</td></tr>
<tr class="memdesc:afcb470076f57f851f8fff1d0322e5f66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Looks up a value previously added via <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#af0693c5f5fdd2583d03eb285ff8f4ee0" title="Adds a mapping from the given type to a Cfg value, so it can be obtained by lookup().">insert()</a>, or indicates no such value has yet been added.  <a href="classflow_1_1log_1_1Component__payload__type__dict.html#afcb470076f57f851f8fff1d0322e5f66">More...</a><br /></td></tr>
<tr class="separator:afcb470076f57f851f8fff1d0322e5f66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a3fac244d76985ea3d1a6c39903c1b2be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#a3f00b5b871aa66b4b21099790cdb775b">Dict_by_ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#a3fac244d76985ea3d1a6c39903c1b2be">m_dict_by_type_ptr</a></td></tr>
<tr class="memdesc:a3fac244d76985ea3d1a6c39903c1b2be"><td class="mdescLeft">&#160;</td><td class="mdescRight">The "fast" dictionary (wherein <code>insert(type, ..., true)</code>-originated values are stored).  <a href="classflow_1_1log_1_1Component__payload__type__dict.html#a3fac244d76985ea3d1a6c39903c1b2be">More...</a><br /></td></tr>
<tr class="separator:a3fac244d76985ea3d1a6c39903c1b2be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97336fefe5cdaa789d48b9d8e68151d0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#aba98daa30395fd21e4eec7d61e7f7563">Dict_by_val</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#a97336fefe5cdaa789d48b9d8e68151d0">m_dict_by_type</a></td></tr>
<tr class="memdesc:a97336fefe5cdaa789d48b9d8e68151d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The "slow" dictionary (wherein <code>insert(type, ..., false)</code>-originated values are stored).  <a href="classflow_1_1log_1_1Component__payload__type__dict.html#a97336fefe5cdaa789d48b9d8e68151d0">More...</a><br /></td></tr>
<tr class="separator:a97336fefe5cdaa789d48b9d8e68151d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename Dict_by_ptr_t, typename Dict_by_val_t&gt;<br />
class flow::log::Component_payload_type_dict&lt; Dict_by_ptr_t, Dict_by_val_t &gt;</div><p >An internal-use dictionary for fast lookup of small <code>Cfg</code> values keyed by <code>type_info</code> objects; impl = 1 <code>Component_payload_type_dict_by_val_...</code> and 1 <code>Component_payload_type_dict_by_ptr_...</code>. </p>
<p >The idea is that <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict__by__val__via__map.html" title="An internal-use dictionary for fast lookup of small Cfg values keyed by type_info objects,...">Component_payload_type_dict_by_val_via_map</a> and other <code>Component_payload_type_dict_by_val_...</code>s are fast but require that one <code>insert(X)</code> only if <code>&amp;Y = &amp;X</code> for all <code>Y == X</code>; while the <code>..._by_val_...</code> counteparts are slower but work with any <code>X</code> types. So an object of the present class combines both: when one calls <code>insert(X)</code>, one specifies whether <code>type_info X</code> is guaranteed to live at exactly that one address; or possibly not. We then store it, and <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#afcb470076f57f851f8fff1d0322e5f66" title="Looks up a value previously added via insert(), or indicates no such value has yet been added.">lookup()</a> will try to leverage the stored items so as to be as fast as it can be (but no faster).</p>
<p >In order to maximize the chances of a well-performing <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#afcb470076f57f851f8fff1d0322e5f66" title="Looks up a value previously added via insert(), or indicates no such value has yet been added.">lookup()</a>, the user shall strive to (correctly!) set the <code>type_info_ptr_is_uniq</code> arg to <code>true</code> when calling <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#af0693c5f5fdd2583d03eb285ff8f4ee0" title="Adds a mapping from the given type to a Cfg value, so it can be obtained by lookup().">insert()</a>, whenever possible.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Dict_by_ptr_t</td><td>A <code>Component_payload_type_dict_by_ptr_...</code> template instance. </td></tr>
    <tr><td class="paramname">Dict_by_var_t</td><td>A <code>Component_payload_type_dict_by_val_...</code> template instance such that <code>Dict_by_ptr_t::Cfg</code> and <code>Dict_by_val_t::Cfg</code> are the same type (meaning they store the same mapped-payloads). </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00053">53</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ad7be2f86e23332ddd692f9fb367b3f80" name="ad7be2f86e23332ddd692f9fb367b3f80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7be2f86e23332ddd692f9fb367b3f80">&#9670;&nbsp;</a></span>Cfg</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Dict_by_ptr_t , typename Dict_by_val_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">flow::log::Component_payload_type_dict</a>&lt; Dict_by_ptr_t, Dict_by_val_t &gt;::Cfg =  typename Dict_by_ptr::Cfg</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience alias for the mapped-type looked-up by a <code>*this</code>. </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00063">63</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<a id="a3f00b5b871aa66b4b21099790cdb775b" name="a3f00b5b871aa66b4b21099790cdb775b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f00b5b871aa66b4b21099790cdb775b">&#9670;&nbsp;</a></span>Dict_by_ptr</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Dict_by_ptr_t , typename Dict_by_val_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">flow::log::Component_payload_type_dict</a>&lt; Dict_by_ptr_t, Dict_by_val_t &gt;::Dict_by_ptr =  Dict_by_ptr_t</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience alias for template arg. </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00059">59</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<a id="aba98daa30395fd21e4eec7d61e7f7563" name="aba98daa30395fd21e4eec7d61e7f7563"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba98daa30395fd21e4eec7d61e7f7563">&#9670;&nbsp;</a></span>Dict_by_val</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Dict_by_ptr_t , typename Dict_by_val_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">flow::log::Component_payload_type_dict</a>&lt; Dict_by_ptr_t, Dict_by_val_t &gt;::Dict_by_val =  Dict_by_val_t</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience alias for template arg. </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00061">61</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af0693c5f5fdd2583d03eb285ff8f4ee0" name="af0693c5f5fdd2583d03eb285ff8f4ee0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0693c5f5fdd2583d03eb285ff8f4ee0">&#9670;&nbsp;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Dict_by_ptr_t , typename Dict_by_val_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">flow::log::Component_payload_type_dict</a>&lt; Dict_by_ptr_t, Dict_by_val_t &gt;::insert </td>
          <td>(</td>
          <td class="paramtype">const std::type_info &amp;&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#ad7be2f86e23332ddd692f9fb367b3f80">Cfg</a>&#160;</td>
          <td class="paramname"><em>cfg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classbool.html">bool</a>&#160;</td>
          <td class="paramname"><em>type_info_ptr_is_uniq</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a mapping from the given type to a <code>Cfg</code> value, so it can be obtained by <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#afcb470076f57f851f8fff1d0322e5f66" title="Looks up a value previously added via insert(), or indicates no such value has yet been added.">lookup()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>A <code>typeid(...)</code> value. Duplicate <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#af0693c5f5fdd2583d03eb285ff8f4ee0" title="Adds a mapping from the given type to a Cfg value, so it can be obtained by lookup().">insert()</a> calls are not allowed: if <code>this-&gt;lookup(X)</code>, with <code>X == type</code>, has been previously invoked, then behavior is undefined (assertion might trip). </td></tr>
    <tr><td class="paramname">cfg</td><td>A value. </td></tr>
    <tr><td class="paramname">type_info_ptr_is_uniq</td><td>Firstly, whenever you can set this to <code>true</code>, you should do so in order to improve performance. Secondly, doing so means you offer the following guarantee: If <code>this-&gt;lookup(X)</code> is subsequently called, and <code>X == type</code>, then <code>&amp;X == &amp;type</code>. If <code>false</code> then you're not making this guarantee (note that doesn't mean you promise there <em>is</em> an <code>X == type</code> where <code>&amp;X == &amp;type</code> &ndash; only that you can't say there isn't). Tips: In practice, if <code>this-&gt;insert(type)</code> and <code>this-&gt;lookup(X)</code> (with <code>X == type</code>) shall always be called <em>not</em> from either side of shared-object boundary, then <code>type_info_ptr_is_uniq = true</code> is safe. Corollary: if all relevant code is statically linked, then it is also safe. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00708">708</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="config_8hpp_source.html#l01101">flow::log::Config::init_component_to_union_idx_mapping()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Component__payload__type__dict_af0693c5f5fdd2583d03eb285ff8f4ee0_icgraph.svg" width="382" height="59"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="afcb470076f57f851f8fff1d0322e5f66" name="afcb470076f57f851f8fff1d0322e5f66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcb470076f57f851f8fff1d0322e5f66">&#9670;&nbsp;</a></span>lookup()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Dict_by_ptr_t , typename Dict_by_val_t &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbool.html">bool</a> <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">flow::log::Component_payload_type_dict</a>&lt; Dict_by_ptr_t, Dict_by_val_t &gt;::lookup </td>
          <td>(</td>
          <td class="paramtype">const std::type_info &amp;&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#ad7be2f86e23332ddd692f9fb367b3f80">Cfg</a> *&#160;</td>
          <td class="paramname"><em>cfg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Looks up a value previously added via <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#af0693c5f5fdd2583d03eb285ff8f4ee0" title="Adds a mapping from the given type to a Cfg value, so it can be obtained by lookup().">insert()</a>, or indicates no such value has yet been added. </p>
<p >Informally: we strive to optimize the performance of this method, expecting it to potentially be called very frequently.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>A <code>typeid(...)</code> value. The lookup shall be successful if and only if <code>insert(X)</code> has been called previously such that <code>X == type</code>. </td></tr>
    <tr><td class="paramname">cfg</td><td><code>*cfg</code> shall be set to the looked-up value previously <code><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#af0693c5f5fdd2583d03eb285ff8f4ee0" title="Adds a mapping from the given type to a Cfg value, so it can be obtained by lookup().">insert()</a></code>ed; or it shall be left untouched if not found. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if and only if <code>*cfg</code> was assigned (i.e., the lookup succeeded). </dd></dl>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00722">722</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="config_8cpp_source.html#l00040">flow::log::Config::component_to_union_idx()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Component__payload__type__dict_afcb470076f57f851f8fff1d0322e5f66_icgraph.svg" width="1015" height="254"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a97336fefe5cdaa789d48b9d8e68151d0" name="a97336fefe5cdaa789d48b9d8e68151d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97336fefe5cdaa789d48b9d8e68151d0">&#9670;&nbsp;</a></span>m_dict_by_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Dict_by_ptr_t , typename Dict_by_val_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#aba98daa30395fd21e4eec7d61e7f7563">Dict_by_val</a> <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">flow::log::Component_payload_type_dict</a>&lt; Dict_by_ptr_t, Dict_by_val_t &gt;::m_dict_by_type</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The "slow" dictionary (wherein <code>insert(type, ..., false)</code>-originated values are stored). </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00111">111</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<a id="a3fac244d76985ea3d1a6c39903c1b2be" name="a3fac244d76985ea3d1a6c39903c1b2be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fac244d76985ea3d1a6c39903c1b2be">&#9670;&nbsp;</a></span>m_dict_by_type_ptr</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Dict_by_ptr_t , typename Dict_by_val_t &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html#a3f00b5b871aa66b4b21099790cdb775b">Dict_by_ptr</a> <a class="el" href="classflow_1_1log_1_1Component__payload__type__dict.html">flow::log::Component_payload_type_dict</a>&lt; Dict_by_ptr_t, Dict_by_val_t &gt;::m_dict_by_type_ptr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The "fast" dictionary (wherein <code>insert(type, ..., true)</code>-originated values are stored). </p>

<p class="definition">Definition at line <a class="el" href="component__cfg_8hpp_source.html#l00109">109</a> of file <a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>log/detail/<a class="el" href="component__cfg_8hpp_source.html">component_cfg.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:35 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
